package com.itheima.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*;

/*
    该类作为一个配置类，用来代替applicationContext.xml配置文件
 */
//@Configuration //注解表示该类是一个配置类
//<context:component-scan base-package="com.itheima"/>
/*@ComponentScans({
        @ComponentScan("com.itheima.service"),
        @ComponentScan("com.itheima.dao")
})*/
@ComponentScan("com.itheima")
//<context:property-placeholder location="classpath:jdbc.properties"/>
@PropertySource("classpath:jdbc.properties")
@Import({JdbcConfiguration.class})//引入分配置类
public class SpringConfiguration {


}
